Api.WriteAxisOutputByte 方法
將一個位元組寫入實體或模擬軸的輸出。
命名空間:IntervalZero.KINGSTAR.Local.Api
組合: IntervalZero.KINGSTAR.Local.Api (於 IntervalZero.KINGSTAR.Local.dll) 版本:4.5.0.0
語法
public KsError WriteAxisOutputByte(
int Index,
int ByteOffset,
byte Value
)
Public Function WriteAxisOutputByte(
Index As Integer,
ByteOffset As Integer,
Value As Byte
) As KsError
參數
Index
型別:int
軸的索引。索引以 0 為起始;別名將影響此參數。
ByteOffset
型別:int
指定位元組偏移量到一個位置,以寫入位元組值。最大偏移量由 SlaveStatus 類別中的 OutputLength決定。
Value
型別:byte
欲寫入的位元組值。
回傳值
方法的回傳代碼。
備註
WriteAxisOutputByte 僅能在連結建立並開始啟用時才能呼叫。
可用的 EtherCAT 狀態
ecatOP
範例
N/A
參見